package speech.nbc;

import java.util.ArrayList;
import java.util.StringTokenizer;

public class Utterance {

	String initialText;
	ArrayList<String> words;

	public Utterance(String initialText) {
		this.initialText = initialText;
		words = new ArrayList<String>();
		parseUtterance();
	}

	private void parseUtterance() {
		// TODO - something more evolved :D
		StringTokenizer strTok = new StringTokenizer(initialText, " .,;:\t\n");

		while (strTok.hasMoreTokens()) {
			words.add(strTok.nextToken());
		}

		// filter common words
	}

	public String getInitialText() {
		return initialText;
	}

	public ArrayList<String> getWords() {
		return words;
	}

	
}
